Skip to content

feat: add support for named params #458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged

feat: add support for named params #458

merged 1 commit into from
Jul 16, 2025

Conversation

psteinroe
Copy link
Collaborator

adds support for named parameters in tokenizer + lexer

for now, we support

  • @name (sqlc)
  • :name, :'name' and :"name" (psql)

closes #455
closes #456

Copy link
Collaborator

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diggi, richtig schöner PR :)

Comment on lines +137 to +139
pgt_tokenizer::NamedParamKind::ColonIdentifier { terminated: false } => {
err = "Missing trailing \" to terminate the named parameter";
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

junge, richtig geil

@psteinroe
Copy link
Collaborator Author

hatte einen sehr sehr schönen Morgen heute. Macht richtig Spaß

@psteinroe psteinroe merged commit 544b6b0 into main Jul 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add support for @name in the lexer add support for :'name' in the lexer
2 participants